
using AutoMapper;
using  LTMCompanyName.YoyoCmsTemplate.Exam;
using  LTMCompanyName.YoyoCmsTemplate.Exam.Dtos;
using static LTMCompanyName.YoyoCmsTemplate.Exam.Dtos.StockCategoryListDto;

// ReSharper disable once CheckNamespace
namespace LTMCompanyName.YoyoCmsTemplate.CustomDtoAutoMapper
{

	/// <summary>
    /// 配置StockCategory的AutoMapper映射
	/// 前往 <see cref="YoyoCmsTemplateApplicationModule"/>的AbpAutoMapper配置方法下添加以下代码段
    /// StockCategoryDtoAutoMapper.CreateMappings(configuration);
    /// </summary>
	public static class StockCategoryDtoAutoMapper
    {
        public static void CreateMappings(IMapperConfigurationExpression configuration)
        {
            configuration.CreateMap <StockCategory,StockCategoryListDto>();
            configuration.CreateMap <StockCategoryListDto,StockCategory>();

            configuration.CreateMap <StockCategoryEditDto,StockCategory>();
            configuration.CreateMap <StockCategory,StockCategoryEditDto>();
            //// custom codes



            //// custom codes end
        }
	}
}
